package com.gomyb.admin.web.context;

import com.gomyb.redis.RedisService;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author <a href="mailto:hellohesir@gmail.com">Mr_He</a>
 * @Copyright (c)</ b> HeC<br/>
 * @createTime 2018/11/4 1:11
 * @Description: 初始化bean
 */
@Component
public class SysInitializing implements InitializingBean {

    @Autowired
    private RedisService redisService;

    @Override
    public void afterPropertiesSet() throws Exception {
        redisService.delAll("shiro:function:*");
    }
}
